package ${RepositoryPackage};

import com.askj.integration.domain.BaseRepository;
import ${EntityPackage}.${EntityClassName};
import java.util.Optional;

/**
 * @author ${author}
 */
public interface ${entity}Repository extends BaseRepository<${EntityClassName}>  {
<#list table.fields as field>
    <#if field.propertyName=='openId' && generate_query_by_openid>
    Optional<${EntityClassName}> forOpenId(String openId);
    </#if>
</#list>
}
